package com.louis.mango.core.page;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

/**
 * 分页请求
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageRequest {

    /**
     * 当前页码
     */
    private int pageNum;

    /**
     * 每页数量
     */
    private int pageSize = 10;

    /**
     * 查询参数
     */
    private Map<String,Object> params = new HashMap<>();


    public Map<String, Object> getParams (String label) {
        return params;
    }

    public void setParams ( Map<String, Object> params ) {
        this.params = params;
    }
}
